home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / gr564s.zip / SRC / MS / NMAKE.MK < prev    next >
Makefile  |  1993-08-02  |  7KB  |  269 lines

  1. # $Id: Makefile,v 5.20 1992/07/28 16:12:44 eggert Exp $
  2. # Copyright (C) 1982, 1988, 1989 Walter Tichy
  3. # Copyright 1990, 1991, 1992 by Paul Eggert
  4. #   Distributed under license by the Free Software Foundation, Inc.
  5. #
  6. # This file is part of RCS.
  7. #
  8. # RCS is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12. #
  13. # RCS is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with RCS; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22. # Report problems and direct all questions to:
  23. #
  24. #    rcs-bugs@cs.purdue.edu
  25. #
  26.  
  27. # default target
  28. default : all
  29.  
  30. # See README for more information on the configuration section.
  31. # ----- start of configuration section -----
  32. # nmake makefile definitions for MS-DOS and OS/2 (Microsoft C or Quick C)
  33.  
  34. #    $Id: nmake.mkh,v 1.8 1992/07/28 16:12:44 eggert Exp $
  35.  
  36. BINDIR = ..\bin
  37.  
  38. CC = cl -nologo
  39. BIND = bind -nologo
  40. BINDN = -n DOSLOADMODULE DOSGETPROCADDR DOSFREEMODULE
  41.  
  42. !IF "$(OS)" == "os2"
  43. CC_286 = -G2
  44. CC_D = -D__OS2__=1
  45. LDLIBS = ms\rcs.def -Lp -link $(LDFLAGS)
  46. LINK = cl -nologo
  47. !ELSE
  48. CC_286 =
  49. CC_D = -D__MSDOS__=1 -Dbad_creat0=1 -Dbad_chmod_close=1
  50. LDLIBS =
  51. LINK = link /nologo $(LDFLAGS) $(OTHER_OBJECT)
  52. !ENDIF
  53.  
  54. !IF "$(DEBUG)" == "Y"
  55. CC_DEBUG = -Zi -Od
  56. LD_DEBUG = /CO
  57. !ELSE
  58. CC_DEBUG = -Gs -Ocegit
  59. LD_DEBUG =
  60. !ENDIF
  61.  
  62. !IF "$(EM)" == "Y"
  63. CC_EM = -EM
  64. !ENDIF
  65.  
  66. !IF "$(QUICK)" == "Y"
  67. CC_QC = -qc
  68. !ENDIF
  69.  
  70. CC_MODEL = S
  71.  
  72. CFLAGS = -A$(CC_MODEL) $(CC_286) -Ims -D__MSC__=1 $(CC_D) $(CC_DEBUG) $(CC_EM) $(CC_QC) -Zp
  73.  
  74. INSTALL = copy
  75.  
  76. LDFLAGS = $(LD_DEBUG)/ST:16384/NOE
  77.  
  78. # You may have to change the following line; there's no standard.
  79. LIB = \msvc\lib\$(s)
  80.  
  81. LOGIN_FLAGS =
  82.  
  83. OTHER_OBJECT = getcwdsl.obj login$(OS).obj spawnvpq.obj $(LIB)setargv.obj
  84.  
  85. REMOVE = -del
  86.  
  87. # makefile definitions for MS-DOS and OS/2
  88.  
  89. #    $Id: ms.mkh,v 1.7 1992/07/28 16:12:44 eggert Exp $
  90.  
  91. # empty string to avoid makefile misparsing of \ at line end with buggy makes
  92. s =
  93.  
  94. TESTPREFIX = ms\$(s)
  95.  
  96. o = .obj
  97. x = .exe
  98.  
  99. conf.h : ms\conf.h
  100.     copy ms\conf.h .
  101.     echo /* */ >> $@
  102.  
  103. login$(OS)$(o) : ms\login$(OS).c
  104.     $(CC) $(CFLAGS) $(LOGIN_FLAGS) -c ms\login$(OS).c
  105.  
  106. dirent$(o) : ms\dirent.c
  107.     $(CC) $(CFLAGS) -c ms\dirent.c
  108.  
  109. getcwdsl$(o) : ms\getcwdsl.c
  110.     $(CC) $(CFLAGS) -c ms\getcwdsl.c
  111.  
  112. spawnvpq$(o) : ms\spawnvpq.c
  113.     $(CC) $(CFLAGS) -c ms\spawnvpq.c
  114.  
  115. utime$(o) : ms\utime.c
  116.     $(CC) $(CFLAGS) $(LOGIN_FLAGS) -c ms\utime.c
  117.  
  118. # On non-Unix hosts you must manually create and edit conf.h from conf.heg.
  119.  
  120. # ----- end of configuration section -----
  121. # You shouldn't have to change anything past this point.
  122.  
  123.  
  124. # Avoid brain damage in some versions of 'make'.
  125. SHELL = /bin/sh
  126.  
  127. # all commands
  128. RCSCOMMANDS = ci$(x) co$(x) ident$(x) merge$(x) \
  129.     rcs$(x) rcsclean$(x) rcsdiff$(x) rcsmerge$(x) rlog$(x)
  130.  
  131. all : $(RCSCOMMANDS)
  132.  
  133. install : all
  134.     $(INSTALL) ci$(x) $(DESTBINDIR)
  135.     $(INSTALL) co$(x) $(DESTBINDIR)
  136.     $(INSTALL) ident$(x) $(DESTBINDIR)
  137.     $(INSTALL) merge$(x) $(DESTBINDIR)
  138.     $(INSTALL) rcs$(x) $(DESTBINDIR)
  139.     $(INSTALL) rcsclean$(x) $(DESTBINDIR)
  140.     $(INSTALL) rcsdiff$(x) $(DESTBINDIR)
  141.     $(INSTALL) rcsmerge$(x) $(DESTBINDIR)
  142.     $(INSTALL) rlog$(x) $(DESTBINDIR)
  143.  
  144. # Install RCS and (if applicable) GNU diff before running these tests.
  145. # To test RCS before installing it, see README.
  146. RCSTEST = PATH=$(BINDIR):$(DIFFPREFIX).:$$PATH sh $(TESTPREFIX)rcstest
  147. installtest :
  148.     $(RCSTEST)
  149. installdebug :
  150.     $(RCSTEST) -v
  151.  
  152. clean :
  153.     $(REMOVE) a.* *$(o) conf.h conf.err $(RCSCOMMANDS) rcsvers.c
  154.  
  155.  
  156. rcsvers.c : ../Version
  157.     ( \
  158.         echo '#include "rcsbase.h"' && \
  159.         echo 'char const RCS_version_string[] = "'"`cat $?`"'";' \
  160.     ) >$@
  161.  
  162. ci = ci$(o) rcslex$(o) rcssyn$(o) rcsgen$(o) rcsedit$(o) rcskeys$(o) rcsmap$(o) \
  163.     rcsrev$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) partime$(o) maketime$(o) rcskeep$(o) \
  164.     rcsfcmp$(o) $(OTHER_OBJECT)
  165. ci$(x) : $(ci)
  166. !IF "$(OS)" == "os2"
  167.     $(LINK) $($@) $(LDLIBS)
  168.     $(BIND) $@ $(BINDN)
  169. !ELSE
  170.     $(LINK) @ms\$*.rsp,$*,,$(LDLIBS);
  171. !ENDIF
  172.  
  173. co = co$(o) rcslex$(o) rcssyn$(o) rcsgen$(o) rcsedit$(o) rcskeys$(o) rcsmap$(o) \
  174.     rcsrev$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) partime$(o) maketime$(o) rcskeep$(o) \
  175.     $(OTHER_OBJECT)
  176. co$(x) : $(co)
  177. !IF "$(OS)" == "os2"
  178.     $(LINK) $($@) $(LDLIBS)
  179.     $(BIND) $@ $(BINDN)
  180. !ELSE
  181.     $(LINK) @ms\$*.rsp,$*,,$(LDLIBS);
  182. !ENDIF
  183.  
  184. ident = ident$(o) rcsmap$(o) $(OTHER_OBJECT)
  185. ident$(x) : $(ident)
  186. !IF "$(OS)" == "os2"
  187.     $(LINK) $($@) $(LDLIBS)
  188.     $(BIND) $@ $(BINDN)
  189. !ELSE
  190.     $(LINK) @ms\$*.rsp,$*,,$(LDLIBS);
  191. !ENDIF
  192.  
  193. merge = merge$(o) merger$(o) rcsfnms$(o) rcslex$(o) \
  194.     rcsmap$(o) rcsrev$(o) rcssyn$(o) rcsutil$(o) rcsvers$(o) \
  195.     rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  196. merge$(x) : $(merge)
  197. !IF "$(OS)" == "os2"
  198.     $(LINK) $($@) $(LDLIBS)
  199.     $(BIND) $@ $(BINDN)
  200. !ELSE
  201.     $(LINK) @ms\$*.rsp,$*,,$(LDLIBS);
  202. !ENDIF
  203.  
  204. rlog = rlog$(o) rcslex$(o) rcsmap$(o) rcssyn$(o) rcsrev$(o) rcsutil$(o) rcsvers$(o) \
  205.     partime$(o) maketime$(o) rcsfnms$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  206. rlog$(x) : $(rlog)
  207. !IF "$(OS)" == "os2"
  208.     $(LINK) $($@) $(LDLIBS)
  209.     $(BIND) $@ $(BINDN)
  210. !ELSE
  211.     $(LINK) @ms\$*.rsp,$*,,$(LDLIBS);
  212. !ENDIF
  213.  
  214. rcs = rcs$(o) rcslex$(o) rcssyn$(o) rcsrev$(o) rcsutil$(o) rcsvers$(o) rcsgen$(o) \
  215.     rcsedit$(o) rcskeys$(o) rcsmap$(o) rcsfnms$(o) rcskeep$(o) $(OTHER_OBJECT)
  216. rcs$(x) : $(rcs)
  217. !IF "$(OS)" == "os2"
  218.     $(LINK) $($@) $(LDLIBS)
  219.     $(BIND) $@ $(BINDN)
  220. !ELSE
  221.     $(LINK) @ms\$*.rsp,$*,,$(LDLIBS);
  222. !ENDIF
  223.  
  224. rcsclean = rcsclean$(o) rcsedit$(o) rcsfcmp$(o) rcsfnms$(o) rcsgen$(o) rcskeys$(o) dirent$(o) \
  225.     rcslex$(o) rcsmap$(o) rcsrev$(o) rcssyn$(o) rcsutil$(o) rcsvers$(o) rcskeep$(o) \
  226.     $(OTHER_OBJECT)
  227. rcsclean$(x) : $(rcsclean)
  228. !IF "$(OS)" == "os2"
  229.     $(LINK) $($@) $(LDLIBS)
  230.     $(BIND) $@ $(BINDN)
  231. !ELSE
  232.     $(LINK) @ms\$*.rsp,$*,,$(LDLIBS);
  233. !ENDIF
  234.  
  235. rcsdiff = rcsdiff$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) rcsmap$(o) rcsrev$(o) rcssyn$(o) \
  236.     rcslex$(o) maketime$(o) partime$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  237. rcsdiff$(x) : $(rcsdiff)
  238. !IF "$(OS)" == "os2"
  239.     $(LINK) $($@) $(LDLIBS)
  240.     $(BIND) $@ $(BINDN)
  241. !ELSE
  242.     $(LINK) @ms\$*.rsp,$*,,$(LDLIBS);
  243. !ENDIF
  244.  
  245. rcsmerge = rcsmerge$(o) merger$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) rcsmap$(o) rcsrev$(o) \
  246.     rcssyn$(o) rcslex$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  247. rcsmerge$(x) : $(rcsmerge)
  248. !IF "$(OS)" == "os2"
  249.     $(LINK) $($@) $(LDLIBS)
  250.     $(BIND) $@ $(BINDN)
  251. !ELSE
  252.     $(LINK) @ms\$*.rsp,$*,,$(LDLIBS);
  253. !ENDIF
  254.  
  255. SOURCE=    ci.c co.c ident.c maketime.c merge.c merger.c partime.c rcs.c \
  256.     rcsclean.c rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
  257.     rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsmerge.c rcsrev.c rcssyn.c \
  258.     rcsutil.c rlog.c rcsvers.c
  259. OBJECT=    ci$(o) co$(o) ident$(o) maketime$(o) merge$(o) merger$(o) partime$(o) rcs$(o) \
  260.     rcsclean$(o) rcsdiff$(o) rcsedit$(o) rcsfcmp$(o) rcsfnms$(o) rcsgen$(o) \
  261.     rcskeep$(o) rcskeys$(o) rcslex$(o) rcsmap$(o) rcsmerge$(o) rcsrev$(o) rcssyn$(o) \
  262.     rcsutil$(o) rlog$(o) rcsvers$(o)
  263.  
  264. lint : conf.h
  265.     $(LINT) $(CC_D) -DRCS_lint=1 $(SOURCE)
  266.  
  267. conf_h = conf.h
  268. $(OBJECT) : $(conf_h) rcsbase.h
  269.